
package com.scs.application.modules.settlement.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.scs.application.core.service.IBaseService;
import com.scs.application.modules.settlement.dto.StockSnapshotDTO;
import com.scs.application.modules.settlement.entity.StockSnapshot;
import com.scs.application.modules.settlement.request.StockSnapshotQueryRequest;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
* 库存快照 service 接口
*
*/
public interface StockSnapshotService extends IBaseService<StockSnapshot> {

    List<StockSnapshot> list(StockSnapshotQueryRequest request);


    IPage<StockSnapshot> page(StockSnapshotQueryRequest request);

    @Transactional(rollbackFor = Exception.class)
    void savePeriodStock(StockSnapshotDTO dto);

}
